Ross Duncan, Simon Perdrix, Rewriting Measurement-Based Quantum Computations with Generalised Flow, in: Automata, Languages and Programming. ICALP 2010, Lecture Notes in Computer Science 6199, Springer (2010) [doi:10.1007/978-3-642-14162-1_24]